import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// import '@/style/element.less'
import '@/style/zeroTrust.less'
import '@/style/index.css'
import '@/assets/fonts/sansSc.css'
import '@/assets/fonts/YouSheBiaoTiHei-2.css'
import './iconfont/iconfont.css'
import './iconfont/iconfont.js'
import * as echarts from 'echarts'
import axios from 'axios'
import Avue from '@smallwei/avue'
import ajax from '../../../src/api/ajax'
import 'dayjs/locale/zh-cn' //中文
import registerComp from '../../components'
import vueSimpleUpload from 'vue-simple-uploader'
import CommonTree from '@/components/v2/commonTree.vue'
//引入ECharts制作数据可视化
import nativeWebsocket from '../../api/nativeWebscoekt'
import VideoTimeline from '@wanglin1994/video-timeline'

Vue.prototype.$echarts = echarts
Vue.prototype.$myAxios = ajax
Vue.config.productionTip = false
window.axios = axios
window.ajax = ajax
window.$websocket = nativeWebsocket
let ws = nativeWebsocket.initWebSocket('topoDiscovery', '/uavMesh')
Vue.prototype.$websocket = ws

Vue.use(VideoTimeline)
Vue.use(Avue)
Vue.use(ElementUI)
Vue.use(registerComp)
Vue.use(vueSimpleUpload)
//注册全局注册
Vue.component('CommonTree', CommonTree)
new Vue({
  router, render: h => h(App)
}).$mount('#app')




